#include "zos_config.h"

#ifdef BOARD_USING_I2C_SHT3X

#include  "zos.h"
#include "sht3x.h"


sht3x_device_t sht3x_dev;

/**
 * @brief 任务线程
 */
int demo_sht30(int argc, char *argv[])
{
	sht3x_dev=sht3x_init(ZOS_I2C_BUS_0,0x44);
	sht3x_read_singleshot(sht3x_dev);	
	zos_printf("sht3x humidity   : %f \r\n", sht3x_dev->humidity);
	zos_printf("sht3x temperature: %f \r\n", sht3x_dev->temperature);
	return ZOS_EOK;
}

#include "shell.h"

SHELL_EXPORT_CMD(demo_sht30,demo_sht30, sht30 demo);
#endif

